<?php
include_once("../config.php");
$sql = "select user.openid as uid,user.ming as ming,
		user.juese as js,danwei.name as dw 
		from user 
		left join danwei on user.danwei=danwei.id 
		where user.openid<>'' and user.status=1 and user.juese in (2,3)";
$requ = mysqli_query($con,$sql);
$data = '[';
while($rs=mysqli_fetch_array($requ)){
	$data.='{"title":"'.$rs['ming'].'_'.$rs['dw'].'","value":"'.$rs['uid'].'"},';
}
$data = rtrim($data,',');
$data.=']';
$result='{"status":"1","msg":"ok","data":'.$data.'}';

echo $result;









